package cn.wolfcode.rbac.domain;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

@Data @AllArgsConstructor @NoArgsConstructor
public class CustomerTraceHistory extends BaseDomain{
    private String traceTime;
    private String traceDetails;
    private Long traceTypeId;
    private Integer traceResult;
    private String remark;
    private Long customerId;
    private Long inputUserId;
    private String inputTime;
    private Integer type;
    private String displayTraceResult;
    private Customer customer;
    private Employee inputUser;
    private SystemDictionaryItem systemDictionaryItem;
    private String displayStatus;
    private String customerName;

    public String getJsonString(){
        Map map = new HashMap();
        map.put("id",id);
        map.put("traceTime",traceTime);
        map.put("traceDetails",traceDetails);
        map.put("traceTypeId",traceTypeId);
        map.put("traceResult",traceResult);
        map.put("remark",remark);
        map.put("customerId",customerId);
        map.put("inputUserId",inputUserId);
        map.put("inputTime",inputTime);
        map.put("type",type);
        map.put("displayTraceResult",displayTraceResult);
        map.put("displayStatus",displayStatus);
        map.put("customerName",customerName);
        return JSON.toJSONString(map);
    }

}
